<?php

namespace app\lunwen\controller;
use app\lunwen\model\CampusModel;
use cmf\controller\HomeBaseController;



class IndexController extends HomeBaseController
{
    public function index(){
        return $this->fetch(':index');
    }

    public function test(){
        $model = new CampusModel();
        $var=[
            'scode'=>100,
            'campus_name'=>'test',
            'campus_province'=>1,
	        'campus_city'=>1,
	        'campus_address'=>1
            ];
        $model->save($var);
    }


}